package com.jp.juc.tp;

public class Worker implements Runnable {


    private final String name;

    public Worker(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println("this task Worker" + name);
    }

    public String getName() {
        return name;
    }
}
